package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.dto.DishDto;

import java.util.List;


public interface DishService extends IService<Dish> {
    void saveWithFlavor(DishDto dishDto);
    Page<DishDto>selectPageByName(Integer page,Integer pageSize,String name);
     DishDto getByIdWithFlavor(Long id);
     //根据id查询菜品的口味信息
     void updateWithFlavor(DishDto dishDto);
     void removeWithDish(Long[]ids);
     List<DishDto> listWithFlavors(Dish dish);
}
